﻿using System;

namespace EmbeddedLanguage.Attributes
{
    public class SubProcessorAttribute : Attribute
    {
        private Type _JSSubProcessorType;
        public Type JSSubProcessorType
        {
            get { return this._JSSubProcessorType; }
            set
            {
                if (!value.IsSubclassOf(typeof(ExpressionToJSProcessor)))
                {
                    throw new NotImplementedException();
                }
                this._JSSubProcessorType = value;
            }
        }
    }
}
